/**
 * 
 * 
 * 你可以打开F12控制台，使用window.connector进行测试
 * 开启或者关闭段落变动监听
 */

window.connector.attachEvent("onParagraphChange", 
    function(paragraphId){
        console.log(paragraphId);
    }
);
window.connector.callCommand(
    function () {
      Api.openParagraphChange();
      Api.closeParagraphChange();
    },
    function () {},
);